import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 品牌列表分页查询
export const findBoardInfoListPage = query => {
    return request({
        url: baseRequest_url+'/admin/board/findBoardInfoListPage',
        method: 'get',
		params: query,
    });
};
// 品牌详情查询
export const findBoardInfoListById = query => {
    return request({
        url: baseRequest_url+'/admin/board/findBoardInfoListById/'+query,
        method: 'get',
		params: query,
    });
};
// 新增品牌
export const addBoardInfo = data => {
    return request({
        url: baseRequest_url+'/admin/board/saveBoardInfo',
        method: 'post',
		data: data,
    });
};
// 编辑品牌
export const saveBoardInfo = data => {
    return request({
        url: baseRequest_url+'/admin/board/saveBoardInfo',
        method: 'put',
		data: data,
    });
};
// 删除品牌
export const deleteBoardInfoById = data => {
    return request({
        url: baseRequest_url+'/admin/board/deleteBoardInfoById/'+data,
        method: 'delete',
		data: data,
    });
};